use "/instrument.dta"

///Table B.1
//Model1
xtivreg2 F.e_peinfmor_ln F.rx_e_peinfmor_ln  nocorrupt e_migdppc_ln e_miurbani e_migdpgro e_mipetrol v2svdomaut e_miinteco e_miinterc democ_n (v2x_EDcomp_thick = rx_v2x_EDcomp_thick nx_v2x_EDcomp_thick),  fe cluster(ccode) first

//Model2
xtivreg2 F.e_peinfmor_ln F.nx_e_peinfmor_ln  nocorrupt e_migdppc_ln e_miurbani e_migdpgro e_mipetrol v2svdomaut e_miinteco e_miinterc democ_n (v2x_EDcomp_thick = rx_v2x_EDcomp_thick nx_v2x_EDcomp_thick ),  fe cluster(ccode) first

//Model3
tabulate year, generate(yr)
drop yr1 
xtivreg2 F.e_peinfmor_ln F.rx_e_peinfmor_ln l.e_peinfmor_ln nocorrupt e_migdppc_ln e_miurbani e_migdpgro e_mipetrol v2svdomaut e_miinteco e_miinterc democ_n yr* (v2x_EDcomp_thick = rx_v2x_EDcomp_thick nx_v2x_EDcomp_thick),  fe cluster(ccode) first partial(yr*)

//Model4
xtivreg2 F.e_peinfmor_ln F.nx_e_peinfmor_ln l.e_peinfmor_ln nocorrupt e_migdppc_ln e_miurbani e_migdpgro e_mipetrol v2svdomaut e_miinteco e_miinterc democ_n yr* (v2x_EDcomp_thick = rx_v2x_EDcomp_thick nx_v2x_EDcomp_thick),  fe cluster(ccode) first partial(yr*)
